package blog.service;

import blog.common.Result;
import blog.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jjpzh
 * @since 2023-02-25
 */
public interface MessageService extends IService<Message> {

    Result listByPage(Integer page, Integer size);

    void addMessage(String from, String to, String content);

    Result listByTo(String to);

    Result listByFrom(String from);

    Result listByFromAndTo(String from, String to);

    Result listByToNameIsAll();
}
